<table width="100%" border="0" cellpadding="0" cellspacing="1" class="STYLE1" bgcolor="b5d6e6">
  <tr>
    <td colspan="3" align="left" background='<%=$urr+"skin/images/bg.gif"%>'><img src='<%=$urr+"skin/icon/web_icon_015.gif"%>' width="16" height="16" />
      <span class="STYLE3"><%=@titles %></span></td>
  </tr>
</table>
<fieldset>
  <% form_for :guide, @guide, :url => { :action => "create" } do |f| %>
    <%= hidden_field :guide, :id %>
    <p>
      <%= f.label :name,"导量名称" %><br />
      <%= f.text_field :name %>
    </p>

    <p>
      <%= f.label :weigh,"权重" %><br />
      <%= f.text_field :weigh %>
    </p>

    <p>
      <%= f.label :num,"数量" %><br />
      <%= f.text_field :num %>
    </p>

    <p>
      <%= f.label :cycle,"周期" %><br />
      <%= f.label "每天" %> <%= radio_button :guide, :cycle, "2", :checked => true %>
      <%= f.label "一次性" %> <%= radio_button :guide, :cycle, "1", :checked => false %>
    </p>

    <p>
      <%= f.label :status,"状态" %><br />
      <%= f.label "开放" %> <%= radio_button :guide, :status, "1", :checked => true %>
      <%= f.label "关闭" %> <%= radio_button :guide, :status, "0", :checked => false %>
    </p>

    <p>
      <%= f.label :g_type,"类型" %><br />
      <%= f.label "广告" %> <%= radio_button :guide, :g_type, "1", :checked => true %>
      <%= f.label "站点" %> <%= radio_button :guide, :g_type, "2", :checked => false %>
    </p>

    <p>
      <%= f.label :url,"url" %><br />
      <%= f.text_area :url, :cols => 80, :rows => 4 %>
    </p>

    <p>
      <%= f.submit '确定' %>       &nbsp;&nbsp;&nbsp;&nbsp;<%= button_to "返回列表", :controller => "guide",:action => "index" %>
    </p>
  <% end %>
</fieldset>